@import 'labels-box';

.dashboard-widget-content-projectlabeleditems {
    margin: 0;
}

.labeled-items-list {
    display: flex;
    flex-direction: column;

    > .labeled-items-error {
        margin: 0 $tlp-spacing $tlp-spacing;
    }
}

.labeled-items-loading {
    width: 250px;
    height: 200px;
    margin: 0 auto;
    background: url('../../../../../../themes/BurningParrot/images/spinner.gif') no-repeat center center;
}

.labeled-item {
    display: flex;
    flex: 1 0 auto;
    padding: $tlp-spacing;
    border-bottom: 1px solid $tlp-ui-border-light;
    color: $tlp-typo-default-text-color;
    text-decoration: none;

    &:hover {
        background-color: transparentize($tlp-theme-color, .9);
        text-decoration: none;
        cursor: pointer;

        .labeled-item-metadata {
            display: flex;
        }
    }
}

.labeled-item-icon {
    margin: 0 $tlp-half-spacing 0 0;
    fill: transparentize($tlp-theme-color, .8);
}

.labeled-items-empty {
    margin: 0 $tlp-spacing 60px;
}

.labeled-item-configuration-label {
    margin: 0 $tlp-half-spacing $tlp-half-spacing 0;
    white-space: normal;
    cursor: default;
}

.labeled-items-list-more {
    display: flex;
    justify-content: center;
    padding: $tlp-spacing;
}

.labeled-item-content {
    flex: 1 1 auto;
}

.labeled-item-title {
    margin: 0 0 10px;
    line-height: 18px;
}

.labeled-item-metadata {
    display: none;
    margin: $tlp-half-spacing 0 0;
}

.labeled-item-metadata-icon {
    margin: 0 5px 0 0;
}

.labeled-item-repository {
    font-size: 12px;
}

.labeled-item-author,
.labeled-item-creation-date {
    @extend %small-dimmed;

    display: flex;
    align-items: baseline;
    line-height: 14px;
}

.labeled-item-author > a {
    @extend %small-dimmed;
}

.labeled-item-creation-date {
    flex: 0 0 auto;
    margin: 0 $tlp-spacing 0 0;
}

%small-dimmed {
    color: $tlp-ui-dimmed;
    font-size: 12px;
}
